<%@page import="cn.yunhe.entity.Cate"%>
<%@page import="cn.yunhe.biz.CateBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		
		String catename=request.getParameter("catename");
		Cate c=new Cate();
		c.setCateName(catename);
		
		CateBiz cateBiz=new CateBiz();
		boolean flag=cateBiz.addCate(c);		
		
		if(flag){
			request.getRequestDispatcher("cateList.jsp").forward(request, response);
		}else{
			response.sendRedirect("addCate.jsp");
		}
		
		
%>


